package www.authority.entity;

import lombok.Data;
import org.beetl.sql.core.annotatoin.Table;
import www.common.entity.BaseEntity;

import java.util.ArrayList;
import java.util.List;

/**
 * @program: authority
 * @description: 菜单字典 基类
 * @author: Mr.Yan
 * @create: 2018-11-15 13:53
 **/
@Data
@Table(name = "sys_menu")
public class SysMenuEntity extends BaseEntity {

	/** 菜单ID */
	private Long menuId;

	/** 菜单名称 */
	private String menuName;

	/** 父菜单名称 */
	private String parentName;

	/** 父菜单ID */
	private Long parentId;

	/** 显示顺序 */
	private String orderNum;

	/** 菜单URL */
	private String url;

	/** 类型:0目录,1菜单,2按钮 */
	private String menuType;

	/** 权限字符串 */
	private String perms;

	/** 菜单图标 */
	private String icon;

	/** 子菜单 */
	private List<SysMenuEntity> children = new ArrayList<SysMenuEntity>();
}
